<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.qiqianyi.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\company\validate;

use think\Validate;

class MemberBabyValidate extends Validate
{
    protected $rule = [
        'name' => 'require',
        'user_id' => 'require',
        'sex' => 'require',
        'birthday' => 'require|date',
        'which_baby' => 'require',
    ];
    protected $message = [
        'name.require' => '姓名不能为空',
        'user_id.require'  => '用户不能为空',
        'sex.require' => '性别不能为空',
        'birthday.require' => '生日不能为空',
        'birthday.date' => '生日必须为日期',
        'which_baby.require' => '第几胎不能为空',
    ];

}